<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:include page="/admin/header.jsp"></jsp:include>
<div class="main">
	<div class="container typecho-dashboard">
		<div class="typecho-page-title">
			<h2>网站概要</h2>
		</div>
		<div class="row typecho-page-main">
			<div class="col-mb-12 welcome-board" role="main">
				<p>
					目前有 <em>${stat['publishedPostsNum']}</em> 篇文章, 并有 <em>${stat['publishedCommentsNum']}</em>
					条关于你的评论在 <em>${stat['categoriesNum']}</em> 个分类中. <br>点击下面的链接快速开始:
				</p>

				<ul id="start-link" class="clearfix">
					<li><a href="${options.siteUrl}/admin/write-post">撰写新文章</a></li>
					<li><a href="${options.siteUrl}/admin/themes">更换外观</a></li>
					<li><a href="${options.siteUrl}/admin/plugins">插件管理</a></li>
					<li><a href="${options.siteUrl}/admin/options-general">系统设置</a></li>
					<!--<li><a href="${basePath}/admin/profile.php">更新我的资料</a></li>-->
				</ul>
			</div>

			<div class="col-mb-12 col-tb-6" role="complementary">
				<section class="latest-link">
					<h3>最近发布的文章</h3>
					<ul>
						<c:forEach var="post" items="${recentPosts}">
							<li><a itemtype="url"
								href="${options.siteUrl}/post/${post['cid']}" target="_blank">${post['title']}</a></li>
						</c:forEach>
					</ul>
				</section>
			</div>

			<div class="col-mb-12 col-tb-6" role="complementary">
				<section class="latest-link">
					<h3>最近得到的回复</h3>
					<ul>
						<c:forEach var="comment" items="${recentComments}">
							<li><a itemtype="url" href="${comment['url']}"
								target="_blank">${comment['author']}</a> : ${comment['text']}</li>
						</c:forEach>
					</ul>
				</section>
			</div>

		</div>
	</div>
</div>

<jsp:include page="/admin/copyright.jsp"></jsp:include>
<jsp:include page="/admin/common-js.jsp"></jsp:include>
<jsp:include page="/admin/footer.jsp"></jsp:include>